#!/usr/bin/env python3
# -*- coding:utf-8 -*-
# Author:liang futing
#@Time :2019/4/10 16:21
from django.contrib.auth.decorators import login_required

class LoginRequiredMixin(object):
    @classmethod
    def as_view(cls,**init_kwargs):
        view=super(LoginRequiredMixin,cls).as_view(**init_kwargs)
        return login_required(view)


